package com.distribution.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.distribution.system.domain.dto.AgentProxyProductDTO;
import com.distribution.system.domain.entity.CmccDaProxyProductManage;
import com.distribution.system.domain.req.ProxyProductManageListReq;
import com.distribution.system.domain.vo.ProductProxyVO;
import com.distribution.system.domain.vo.CmccDaProxyProductVO;
import com.distribution.system.domain.dto.UpdateDaProxyProductDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 代理卡信息表(CmccDaProxyCardManage)表数据库访问层
 *
 * @since 2023-05-21 16:08:27
 */
public interface CmccDaProxyProductManageMapper extends BaseMapper<CmccDaProxyProductManage> {
    /**
     * 查询参数配置信息
     */
    List<CmccDaProxyProductVO> selectAgentProxyProduct(AgentProxyProductDTO agentProxyProductDTO);

    List<CmccDaProxyProductVO> selectAgentProxyProductYunYing(AgentProxyProductDTO agentProxyProductDTO);


    List<ProductProxyVO> selectProxyProductList(ProxyProductManageListReq proxyProductManageListReq);

    void updateSubCommissionProxyProduct(@Param("cmccDaProxyProductManage") CmccDaProxyProductManage cmccDaProxyProductManage);

    List<UpdateDaProxyProductDTO> selectProductCommission(Long userId);

    void insertBatchInfo(List<CmccDaProxyProductManage> modelList);

    void deleteByProductCode(String productCode);
    void deleteByUserId(Long userId);
}
